package com.localjoycommunity.cpdj.project.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.localjoycommunity.cpdj.project.system.domain.UserCompany;
import org.apache.ibatis.annotations.Select;

import java.util.Optional;

/**
 * @Author: lida
 * @Date: 2020/11/14 0014 上午 11:37
 * @Description:
 */
public interface UserCompanyMapper extends BaseMapper<UserCompany> {
    @Select("select is_dig from user_company where user_id=#{userId} and two_new_id =#{twoNewId};")
    Optional<Integer> isDig(int userId, Long twoNewId);
}
